<template>
  <view class="container">
    <textarea v-model="name" class="box" placeholder="请输入"></textarea>
    <view
      style="
        width: 690rpx;
        height: 80rpx;
        background: #feff01;
        border-radius: 20rpx 20rpx 20rpx 20rpx;
        font-weight: 500;
        font-size: 32rpx;
        color: #151515;
        margin-top: 120rpx;
        text-align: center;
        line-height: 80rpx;
      "
	  @click="edit"
    >
      确定
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
		id:null,
		name:''
	};
  },
  onLoad(data) {
  	this.id = data.id
  	this.name = data.qunjianjie
  },
  methods:{
  	  edit(){
  		  if(this.name == '')return this.util.showToast('请输入群简介')
  		  this.http('/group/updGroupRes',{
  			  bulletin:this.name,
  			  id:this.id
  		  }).then(res =>{
  			  this.util.showToast(res.msg)
  			  setTimeout(()=>{
  				  uni.navigateBack()
  			  },800)
  		  })
  	  }
  }
};
</script>

<style lang="scss" scoped>
.container {
  box-sizing: border-box;
  padding: 22rpx 30rpx;
  .box {
    box-sizing: border-box;
    width: 690rpx;
    height: 320rpx;
    background: #f1edf0;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    padding: 24rpx 30rpx;
    font-weight: 400;
    font-size: 32rpx;
    color: #666666;
  }
}
</style>
